package com.hunau.novel_reading.request;

import jakarta.validation.constraints.NotBlank;

public class UsersRegisterReq {
    @NotBlank(message = "用户名不能为空")
    private String username;
    @NotBlank(message = "密码不能为空")
    private String password;

    public @NotBlank(message = "用户名不能为空") String getUsername() {
        return username;
    }

    public void setUsername(@NotBlank(message = "用户名不能为空") String username) {
        this.username = username;
    }

    public @NotBlank(message = "密码不能为空") String getPassword() {
        return password;
    }

    public void setPassword(@NotBlank(message = "密码不能为空") String password) {
        this.password = password;
    }
    public UsersRegisterReq()
    {

    }
    public UsersRegisterReq(String username, String password)
    {
        this.username = username;
        this.password = password;
    }
}
